﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NeuralNetworks.ActivationFunctions
{
    class ActivationFunctionFactory
    {
        public const string linear = "liniowa";
        public const string threshold = "progowa";
        public const string logisitic = "logistyczna";

        public static IActivationFunction getFunction(String function)
        {
            IActivationFunction f = null;
            switch (function)
            {
                case threshold:
                    f = new ThresholdFunction(0.5);
                    break;
                case logisitic:
                    f = new LogisticFunction();
                    break;
                case linear:
                default:
                    f = new LinearFunction();
                    break;
            }
            return f;
        }
    }
}
